<template>
<div class="orgList">
  <div class="hd-top">
    <div class="title">
      <span class="t">卖币</span>
      <span class="n">卖币赚钱</span>
    </div>
    <div class="switch">
      <van-switch v-model="isSwitch" :loading="loading" />
    </div>
  </div>
  <div class="content">
     <van-pull-refresh v-model="isLoading" @refresh="onRefresh">
        <van-list v-model="listLoading" :finished="finished" :offset="50"
                    :immediate-check="false" finished-text="暂无数据" @load="onLoad">
            <div class="list">
              <div class="info">
                <img class="wepay" src="/static/images/wpay.png" />
                <span class="text">微信支付</span>
              </div>
              <div class="btn">抢单29秒</div>
            </div>
            <div class="list">
              <div class="info">
                <img class="alipay" src="/static/images/alipay.png" />
                <span class="text">微信支付</span>
              </div>
              <div class="btn">抢单29秒</div>
            </div>
            <div class="list">
              <div class="info">
                <img class="unionpay" src="/static/images/unionpay.png" />
                <span class="text">微信支付</span>
              </div>
              <div class="btn">抢单29秒</div>
            </div>
            <div class="list">
              <div class="info">
                <img class="wepay" src="/static/images/wpay.png" />
                <span class="text">微信支付</span>
              </div>
              <div class="btn">抢单29秒</div>
            </div>
            <div class="list">
              <div class="info">
                <img class="wepay" src="/static/images/wpay.png" />
                <span class="text">微信支付</span>
              </div>
              <div class="btn">抢单29秒</div>
            </div>
            <div class="list">
              <div class="info">
                <img class="wepay" src="/static/images/wpay.png" />
                <span class="text">微信支付</span>
              </div>
              <div class="btn">抢单29秒</div>
            </div>
            <div class="list">
              <div class="info">
                <img class="wepay" src="/static/images/wpay.png" />
                <span class="text">微信支付</span>
              </div>
              <div class="btn">抢单29秒</div>
            </div>
            <div class="list">
              <div class="info">
                <img class="wepay" src="/static/images/wpay.png" />
                <span class="text">微信支付</span>
              </div>
              <div class="btn">抢单29秒</div>
            </div>
        </van-list>
     </van-pull-refresh>
  </div>
  <div class="pos-state">
    <div class="text flex">接单中...</div>
    <div class="s-btn flex">停止接单</div>
  </div>
</div>
</template>
<script>
export default {
  name: 'OrgList',
  data() {
    return {
      isSwitch: false,
      loading: false,
      isLoading: false,
      listLoading: false,
      finished: false
    };
  },
  props: {
    value: {
      type: String
    }
  },
  computed: {
  },
  created() {
  },
  mounted() {
  },
  methods: {
    onRefresh() {
      setTimeout(() => {
        this.isLoading = false;
      }, 500);
    },
    onLoad() {
      setTimeout(() => {
        this.$set(this, 'finished', true);
      }, 500);
    }
  }
};
</script>
<style lang="scss" scoped>
.orgList{
  height: 100%;
  .pos-state{
    position: fixed;
    bottom: 0;
    left:0;
    right: 0;
    display: flex;
    padding:20px 30px 20px;
    .flex{
      flex: 1;
    }
    .text{
      color: #EA2222;
      font-size: 32px;
      line-height: 90px;
    }
    .s-btn{
      background-color: #2C64EF;
      border-radius: 40px;
      font-size: 30px;
      padding: 20px 0;
      color: #fff;
      text-align: center;
    }
  }
  .hd-top{
    background-color: #fff;
    padding: 33px 34px 20px;
    display: flex;
    justify-content: space-between;
    .title{
      font-size: 36px;
      color: #333;
      .t{
        font-size: 36px;
        color: #333;
      }
      .n{
        font-size: 24px;
        color: #666;
        padding-left:24px;
      }
    }
    .switch{
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
  .content{
    border-top:40px solid #f4f4f4;
    height: calc(100% - 280px);
    overflow: auto;
    .list{
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 36px 34px;
      background-color: #fff;
      margin-top:10px;
      .info{
        display: flex;
        align-items: center;
        .wepay,.alipay,.unionpay{
          flex: 1;
        }
        .wepay{
           width: 66px;
           height: 57px;
        }
        .alipay{
          width: 66px;
          height: 66px;
        }
        .unionpay{
          width: 71px;
          height: 44px;
        }
        .text{
          color: #212121;
          line-height: 60px;
          font-size: 30px;
          margin-left:20px;
        }
      }
      .btn{
        background-color: #FF0000;
        font-size: 30px;
        color: #fff;
        text-align: center;
        padding: 15px 46px;
        border-radius: 10px;
      }
    }
  }
}
</style>
